import request from '@/utils/request';



export async function queryList(params) {
  return request('supplyChain/warehouse/list');
}


export async function addWarehouse(params) {
  return request('supplyChain/warehouse/add', {
    method: 'POST',
    data: {
      ...params,
    },
  });
}

export async function removeRule(id) {
  return request(`/supplyChain/warehouse/${id}`, {
    method: 'DELETE',
    data: {},
  });
}

export async function goodsTreeList(id) {
  return request(`supplyChain/warehouse/listGoods/${id}`);
}

export async function inStock(params) {
  return request('supplyChain/warehouse/inStock', {
    method: 'POST',
    data: {
      ...params,
    },
  });
}
